package web.suzy.oj.pojo.entity.user;

import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import io.swagger.annotations.ApiModel;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.util.Date;

/**
 * YangSuzy 软件工作室
 * 类名: SysUserRole
 * 描述: 用户角色表实体类
 * 功能: ---- 待定 -----
 *
 * @author YangSuzy
 * Date: 2022/11/4 11:55
 */

@Data
@EqualsAndHashCode(callSuper = false) //排除父类字段
@Accessors(chain = true) //开启链式编程
@ApiModel(value = "SysUserRole对象")
public class SysUserRole implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    private String uid;

    private Long roleId;

    @TableField(fill = FieldFill.INSERT)
    private Date createTime;

    @TableField(fill = FieldFill.INSERT_UPDATE)
    private Date modifiedTime;
}
